package com.Khan.SocialRescueSys.dao;

import com.Khan.SocialRescueSys.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Khan Liu
 * @date 2022/4/4 19:06
 */
@Mapper
@Repository
public interface MessageDao {

    List<Message> getIndexSkill();

    Message getSkill(Long id);

    List<Message> getNews();

    Message getNewsDetail(Long id);

    List<Message> getAllMessages();

    Message getMessage(Long id);

    Message getMessageByTitle(String title);

    int saveMessage(Message message);

    int updateMessage(Message message);

    int deleteMessage(Long id);

}
